package org.xlh.ssm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.xlh.ssm.bean.Vip;
import org.xlh.ssm.service.VipService;

@RestController
public class VipController {

    @Autowired
    private VipService vipService;
    @GetMapping("/detail")
    public Vip detail(String cardNumber) {
        return vipService.findByCardNumber(cardNumber);
    }
}
